/*
 * @Descripttion:
 * @LastEditors: xzh
 * @LastEditTime: 2024-04-21 17:50:11
 */
import { createApp } from "vue";

//全局css
import "@/styles/index.scss";
import "animate.css/animate.min.css";

//引入ElementPlus
import elementPlus from "element-plus";

//引入pinia
import pinia from "./store";

//引入i18n，国际化语言包
import creatI18n from "@/international/i18n";

//按需加载vxe-table
import { useVxeTable } from "./unplugin/vxeTable";

// 引入echarts
import echarts from "./unplugin/echarts";

//引入路由
import router from "./router";
//路由守卫
import "@/router/permission";

import App from "./App.vue";

let app = createApp(App);
//设置全局变量
app.provide("echarts", echarts);

app
  .use(pinia)
  .use(creatI18n())
  .use(router)
  .use(elementPlus)
  .use(useVxeTable)
  .mount("#app");
